#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "esp_timer.h"
#include "hardware/my_fun/bsp_led.h"
#include "hardware/my_fun/bsp_key.h"
#include "que.h"
#include "driver/uart.h"
#include "bsp_uart.h"
#include "bsp_showWorld.h"

/*
    这个是主函数 fuck 怎么led
*/


void app_main(void)
{
    //初始化串口2 TX=GPIO10 RX=GPIO9
    uart_init_config(UART_NUM_2, 115200, 10,11);
   //配置LED
    LedGpioConfig();
    que_int_user();
    show_wold_init();
    //设置LED点亮

    int cnt = 0;
    while(1) {
        //printf("cnt: %d\n", );
        cnt++;
        vTaskDelay(1000 / portTICK_PERIOD_MS);
        gpio_set_level(GPIO_NUM_48, cnt % 2);
        //uart_write_bytes(UART_NUM_2, (const char*)"start uart demo", strlen("start uart demo"));
    }
    
}

